package com.wondersgroup.provider.service;

import com.alibaba.dubbo.config.annotation.Service;
import com.wondersgroup.common.api.UserService;
import org.springframework.stereotype.Component;

@Component
@Service(timeout = 10000, interfaceClass = UserService.class)
public class UserServiceImpl implements UserService {

    @Override
    public String getUserById(int id) {
        if (id == 1) {
            return "SimpleWu";
        } else {
            return "Apache Dubbo";
        }
    }
}